package mianshi;

import org.junit.Test;

public class Demo {

	@Test
	public void test1() {
		// 只要赋值给short类型的值不超过short的范围，是可以直接赋值
		short s1 = 1;
		s1 = 34;
		// s1 = 2323434; //Type mismatch: cannot convert from int to short
		//s1 = s1 + 1;// Type mismatch: cannot convert from int to short
		s1 += 1;
	}
}
